package com.khalil.kkadmin.common.email;

import java.util.HashMap;
import java.util.Map;

public class QQMailAccount extends MailAccount {
    public QQMailAccount(String username, String password) {
        super("smtp.qq.com", 465, username, password);

        Map<String, String> properties = this.getProperties();
        if (properties == null) {
            properties = new HashMap<>();
            properties.put("mail.smtp.ssl.enable", "true");
            properties.put("mail.smtp.ssl.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
            this.setProperties(properties);
        }

    }
}
